package com.pet.server.ext;

import org.apache.commons.httpclient.Cookie;

import net.sf.json.JSONObject;

public class ApiResponse {

	public JSONObject ret;
	public Cookie[] cookies;
	public JSONObject getRet() {
		return ret;
	}
	public void setRet(JSONObject ret) {
		this.ret = ret;
	}
	public Cookie[] getCookies() {
		return cookies;
	}
	public void setCookies(Cookie[] cookies) {
		this.cookies = cookies;
	}
	public Cookie getAccountCookie(){
		for(Cookie cookie:cookies){
			if("hua1000pass".equals(cookie.getName())){
				return cookie;
			}
		}
		return null;
	}
	
}
